﻿using Centny.PdfReader.IO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Centny.PdfReader.Operator
{
    public class GStore : PdfOperatorExecuter
    {
        public PdfStreamLexer Lexer
        {
            get;
            set;
        }

        public string Operator
        {
            get { return "q"; }
        }

        public void Execute(Types.PdfOperator op)
        {
            this.Lexer.Store();
        }
    }
    public class GRestore : PdfOperatorExecuter
    {
        public PdfStreamLexer Lexer
        {
            get;
            set;
        }

        public string Operator
        {
            get { return "Q"; }
        }

        public void Execute(Types.PdfOperator op)
        {
            this.Lexer.Restore();
        }
    }
}
